package study.strategy;

import java.util.List;
import java.util.Vector;

public class IdentifyStratgy {

    private static  List<IdConfirm> idConfirms = new Vector<IdConfirm>();

    static {
        idConfirms.add(new STIdConfirm());
        idConfirms.add(new YQIdConfirm());
    }

    public boolean doIdentiry(String appKey,int i){
        IdConfirm id = idConfirms.get(i);

        String apply = id.apply();
        apply = apply+appKey;
       return  id.doIdentify(apply);


    }

    public class IdComfirmType{
        public static final int ST_CONFIRM = 0;
        public static final int YQ_CONFIRM = 0;

    }
}
